package d1103.One;

public class Fu {
    protected String name;
    public Fu(){
        System.out.println("父类无参构造函数---");
    }
    public Fu(String name){
        System.out.println("父类有参构造函数---");
        this.name=name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    protected void talent(){
        System.out.println("才艺");
    }
}
